package com.skycity.auth.config;


import jakarta.servlet.*;
import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

/**
 * @Description
 * @Author YingBo.Dai
 * @Date 2024/10/23
 * @Version 1.0
 */
@Slf4j
public class GlobalSecurityFilter implements Filter {
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        HttpServletRequest req = (HttpServletRequest) request;
        String uri = req.getRequestURI();
        log.info("----------request begin：{}-------",uri);
        chain.doFilter(request,response);
        log.info("----------request end：{}-------",uri);
    }
}
